home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 1999 July
/
Software of the Month - Ultimate Collection Shareware 263.iso
/
pc
/
Xtras
/
Behavior Library.cst
/
00005_Script_Go to Previous Marker
< prev
next >
Wrap
Text File
|
1997-11-17
|
1KB
|
53 lines
-- Marker Go to Previous
-- nav
-- behavior library version 1.1
-- goes to previous marker on author selected event
-- also functions through lingo by handling message 'initGotoPreviousMarker',
-- for example if this behavior was assigned to sprite 5, use
-- sendsprite 5, #initGotoPreviousMarker
property whichEvent
on initGotoPreviousMarker me
init me
end
on mouseUp me
if whichEvent = #mouseup then init me
end
on prepareFrame me
if whichEvent = #prepareframe then init me
end
on exitFrame me
if whichEvent = #exitframe then init me
end
on init me
go to marker (-1)
end
---
on getPropertyDescriptionList
set p_list = [ #WhichEvent: [ #comment: "Initializing Event:", #format: #symbol, #range: [ #MouseUp, #PrepareFrame, #ExitFrame, #InitGotoPreviousMarker], #default: #MouseUp ] ]
return p_list
end
on getBehaviorDescription
return "Moves the Playback Head to the previous marker when the specified event occurs. Drag to a sprite or a frame in the script channel." && RETURN & "PARAMETERS:" && RETURN & "ò Initializing Event - Specify the event that triggers the behavior."
end